package com.yanmaohu.nikita.data.function.statement;

import com.yanmaohu.nikita.data.expression.Expression;
import com.yanmaohu.nikita.data.expression.InvocationExpression;
import com.yanmaohu.nikita.data.function.ArgumentList;

/**
 * @author Bright Lee
 */
public final class InvocationStatement extends Statement {

    private InvocationExpression invocationExpression;

    public InvocationStatement(int beginIndex,
                               int endIndex,
                               InvocationExpression invocationExpression) {
        super(beginIndex, endIndex);
        this.invocationExpression = invocationExpression;
    }

    public Expression getFunction() {
        return invocationExpression.getFunction();
    }

    public ArgumentList getArgumentList() {
        return invocationExpression.getArgumentList();
    }

}
